# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
#
# from AUR - adapted to you style
#
# Contributor: Matthias Fulz < mfulz [at] olznet [dot] de >

pkgname=gsa
pkgver=24.6.1
pkgrel=1
pkgdesc='Greenbone Security Assistant - The web frontend for the Greenbone Community Edition.'
arch=('any')
url='https://github.com/greenbone/gsa'
license=('AGPL-3.0-only')
depends=('gsad' 'openvas-scanner')
source=("https://github.com/greenbone/gsa/releases/download/v$pkgver/$pkgname-dist-$pkgver.tar.gz")
sha512sums=('5066998c65bb367670a25e9cbfd11b44fa294fc474ee1fb71e0f485774592e3d612e94292b6efbf80a650709e2e33fca35f93f4a108527ae0ce7967c7d2f0958')

package() {
  install -d $pkgdir/usr/share/gvm/gsad/web

  for i in {assets/,img/,index.html,locales/,robots.txt}; do
    cp -dpr --no-preserve=ownership ${i} $pkgdir/usr/share/gvm/gsad/web/
  done
}

